package com.wanmait.deliverymangementsystem.mapper;

import com.wanmait.deliverymangementsystem.pojo.Runner;

import java.util.List;

public interface RunnerMapper {

    void insert(Runner runner);
    //登录
    Runner selectByPhone_numberAndPassword(Runner runner);
    List<Runner> findAll();

    void updateAvailable(Boolean ava,Integer id);
    List<Runner> findAllByAvailable(Boolean ava);
    void updateCompletedOrderNumberByID(Integer id,Integer number);
    void updateWalletByID(Runner runner);

    void updateLastLoginTimeByID(Integer id);

    void updateEnableByID(Integer id, Boolean status);

    void updateNickNameByID(Integer id,Integer nickID);

    Runner  selectByID(Integer id);

    void updateRatingByID(Runner runner);

    List<Runner> findByCityID(Integer id);

    List<Runner> findByRunnerName(String name);

    List<Runner> findByPhoneNumber(String phone);

    List<Runner> findByPhoneNumberAndName(String phoneNumber,String name);



}